
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TargetJinduCfg : public ManualSingleton <TargetJinduCfg>
{
	friend ManualSingleton <TargetJinduCfg>;
public:
	TargetJinduCfg();
	~TargetJinduCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TargetJinduCfgInfo *GetTargetJinduCfgInfo(int32_t id);
	const TargetJinduCfgMap *GetTargetJinduCfgMap() { return &m_TargetJinduCfgMap; }
private:
	TargetJinduCfgMap m_TargetJinduCfgMap;
};

#define  g_MakeTargetJinduCfgTable() (TargetJinduCfg::Instance())
#define  g_GetTargetJinduCfgTable() (TargetJinduCfg::GetInstance())
#define  g_DelTargetJinduCfgTable() (TargetJinduCfg::Destroy())